package com.codeoss.framework.view.pagebean.mobile;

import org.springframework.stereotype.Service;

import com.codeoss.framework.context.YunContext;
import com.codeoss.framework.view.clientscript.SearchDialogCallbackClientScript;

@Service("mSearchTreeViewPageBean")
public class MSearchTreeViewPageBean extends MTreeListViewPageBean {
	public void dataSelected() {
		YunContext yunContext = YunContext.getCurrentContext();
		Long idValue = Long.parseLong(yunContext.getViewRequest().getData().get("id"));
		SearchDialogCallbackClientScript searchDialogCallbackClientScript=new SearchDialogCallbackClientScript();
		searchDialogCallbackClientScript.setSelectedValue(idValue);
		yunContext.addClientScript(searchDialogCallbackClientScript);
		yunContext.setRenderCompleted(true);
	}
}
